package com.aaa.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * Table: sms_coupon_history
 */
@Data
public class SmsCouponHistory implements Serializable {
    /**
     * Table:     sms_coupon_history
     * Column:    id
     * Nullable:  false
     */
    private Long id;

    /**
     * Table:     sms_coupon_history
     * Column:    shop_id
     * Nullable:  true
     */
    private Long shopId;

    /**
     * Table:     sms_coupon_history
     * Column:    coupon_id
     * Nullable:  true
     */
    private Long couponId;

    /**
     * Table:     sms_coupon_history
     * Column:    member_id
     * Nullable:  true
     */
    private Long memberId;

    /**
     * Table:     sms_coupon_history
     * Column:    coupon_code
     * Nullable:  true
     */
    private String couponCode;

    /**
     * 领取人昵称
     *
     * Table:     sms_coupon_history
     * Column:    member_nickname
     * Nullable:  true
     */
    private String memberNickname;

    /**
     * 获取类型：0->后台赠送；1->主动获取
     *
     * Table:     sms_coupon_history
     * Column:    get_type
     * Nullable:  true
     */
    private Integer getType;

    /**
     * Table:     sms_coupon_history
     * Column:    create_time
     * Nullable:  true
     */
    private Date createTime;

    /**
     * 使用状态：0->未使用；1->已使用；2->已过期
     *
     * Table:     sms_coupon_history
     * Column:    use_status
     * Nullable:  true
     */
    private Integer useStatus;

    /**
     * 使用时间
     *
     * Table:     sms_coupon_history
     * Column:    use_time
     * Nullable:  true
     */
    private Date useTime;

    /**
     * 订单编号
     *
     * Table:     sms_coupon_history
     * Column:    order_id
     * Nullable:  true
     */
    private Long orderId;

    /**
     * 订单号码
     *
     * Table:     sms_coupon_history
     * Column:    order_sn
     * Nullable:  true
     */
    private String orderSn;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sms_coupon_history
     *
     * @mbg.generated Mon Jan 06 19:35:03 CST 2020
     */
    private static final long serialVersionUID = 1L;
}